package com.chai.controller;
/**
 * 标识码，用于表示操作的成功或失败
 * */
public class Code {

    /**数据查询的编码*/

    public static final Integer SAVE_OK=20011;
    public static final Integer DELETE_OK=20021;
    public static final Integer UPDATE_OK=20031;
    public static final Integer GET_OK=20041;

    public static final Integer SAVE_ERR=20010;
    public static final Integer DELETE_ERR=20020;
    public static final Integer UPDATE_ERR=20030;
    public static final Integer GET_ERR=20040;

    /**异常的编码*/
    //业务异常
    public static final Integer SYSTEM_ERR=50001;
    //业务异常
    public static final Integer BUSINESS_ERR=50002;
    //系统未知的错误
    public static final Integer SYSTEM_UNKNOWN_ERR=5999;
}
